/* Reset default margin and padding */
html, body, div, span, h1, h2, h3, p, a, img, ul, li, form, label, input, textarea, button {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* Box-sizing border-box */
*, *::before, *::after {
    box-sizing: border-box;
}

/* General styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    margin: 0 auto;
}

/* Header styles */
.header {
    background: linear-gradient(to bottom, #222, #444); /* Gradient background */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid #ff7f50; /* Add a bottom border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    border-radius: 0 0 20px 20px; /* Rounded corners for the bottom */
}

.logo {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px; /* Add letter spacing for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow effect */
}

.navigation {
    margin-top: 20px; /* Add some space between logo and navigation */
}

.nav-links li {
    display: inline-block;
    margin: 0 15px; /* Add spacing between navigation links */
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ff7f50;
    text-decoration: underline;
}


/* Hero section styles */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('image4.jpg'); /* Add a gradient overlay */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-heading {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-subheading {
    font-size: 1.2em;
}

/* Section styles */
.section-heading {
    font-size: 2em;
    margin-bottom: 20px;
}

.section-text {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Article styles */
.article {
    margin-bottom: 30px;
}

.article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.article-text {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.article-link {
    color: #ff7f50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #222;
}

/* Gallery styles */
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-images img {
    width: 300px;
    height: 200px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* News styles */
.news-item {
    margin-bottom: 30px;
}

.news-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.news-text {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.news-link {
    color: #ff7f50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #222;
}

/* FAQ styles */
.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 1.1em;
    margin-bottom: 15px;
}

/* Contact form styles */
.contact-form {
    margin-top: 20px;
}

.form-label {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-textarea {
    resize: vertical;
}

.form-button {
    background-color: #ff7f50;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #e36234;
}

/* Footer styles */
.footer {
    background: linear-gradient(to bottom, #444, #222); /* Gradient background */
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-radius: 20px 20px 0 0; /* Rounded corners for the top */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.footer-text {
    font-size: 0.9em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Add shadow effect */
}

.footer a {
    color: #ff7f50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* Example Hover Effects */
.article-link:hover,
.news-link:hover,
.nav-links li a:hover {
    text-decoration: underline;
    transform: scale(1.1); /* Increase size on hover */
}

/* Example Background Effects */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), url('image4.jpg');
}

/* Example Animation for Elements */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply the animation to certain elements */
.hero-heading,
.hero-subheading,
.section-heading,
.section-text,
.article-title,
.article-text,
.news-title,
.news-text,
.faq-question,
.faq-answer,
.form-label,
.form-input,
.form-textarea,
.form-button,
.footer-text {
    animation: fadeIn 1s ease;
}

/* Example Iconography */
.nav-links li a::before {
    content: "\2022"; /* Bullet character */
    margin-right: 5px;
}

/* Example Interactive Elements */
/* You can add JavaScript to make these interactive */
.accordion {
    cursor: pointer;
    user-select: none;
}

.panel {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.panel.show {
    display: block;
}
/* Example Background Effects */
.gallery-images img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Example Typography Enhancements */
.hero-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

.section-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}

/* Example Iconography */
.nav-links li a::before {
    content: "\2022"; /* Bullet character */
    margin-right: 5px;
    font-family: 'Arial', sans-serif;
}

/* Example Interactive Elements */
/* You can add JavaScript to make these interactive */
.accordion {
    cursor: pointer;
    user-select: none;
}

.panel {
    display: none;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
}

.panel.show {
    display: block;
}

/* Example Animations */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.article,
.news-item,
.faq-item,
.contact-form {
    animation: slideInLeft 0.5s ease forwards;
}

/* Additional Resources */
.resource-list {
    list-style: none;
    padding: 0;
}

.resource-list li {
    margin-bottom: 10px;
}

.resource-list li a {
    color: purple;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-list li a:hover {
    color: #ff7f50;
}
.article-content {
    display: none;
}

.article-content.visible {
    display: block;
}
.news-content {
    display: none;
}

.news-content.visible {
    display: block;
}

/*-----------------------preloader-----------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.726); /* Set background color to whitesmoke */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  #preloader img {
    width: 100px;
    height: 100px;
  }
  
  
/*------------------------------------------Dark mode on off ------------------------------------*/
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-top: -50px;
    margin-left: 90%;
    top: -13px;
    visibility: hidden;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  .Light {
    background-color:  rgba(241, 209, 150, 0.532); /* Light mode background color */
    color: black; /* Text color remains black for better readability */
  }
  .Dark {
    background-color: rgba(0, 0, 0, 0.919);
    color: white;
  }
  .LightHeader {
    background-color: linear-gradient(45deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 50%, rgba(0, 0, 0, 0.5) 100%);
  }
  
  .DarkHeader {
    background: linear-gradient(45deg, rgba(21, 149, 104, 0.5) 0%, rgba(32, 182, 32, 0.8) 50%, rgba(13, 152, 145, 0.5) 100%);
    color: #000000;
  }
  /* Default styles for list items */
.nav-links li {
    color: black; /* Default color for list items */
}

/* Styles for list items in dark mode */
.Dark .nav-links li {
    color: white; /* Change color to white in dark mode */
}

/*----------------------------------- Example Responsive styles------------------------------------ */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        margin: 0 auto;
    }

    .nav-links {
        display: none;
    }

    .nav-links li {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-links li a {
        display: block;
    }

    .hero-heading {
        font-size: 2.5em;
    }

    .hero-subheading {
        font-size: 1em;
    }

    .section-heading {
        font-size: 1.5em;
    }

    .section-text {
        font-size: 1em;
    }

    .article-title {
        font-size: 1.3em;
    }

    .article-text {
        font-size: 1em;
    }

    .news-title {
        font-size: 1.3em;
    }

    .news-text {
        font-size: 1em;
    }

    .faq-question {
        font-size: 1.3em;
    }

    .faq-answer {
        font-size: 1em;
    }

    .form-label {
        font-size: 1em;
    }

    .form-input,
    .form-textarea {
        font-size: 0.9em;
    }

    .form-button {
        font-size: 1em;
    }

    /* Example Animation for Fading In Boxes */
    @keyframes fadeInBox {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Apply the animation to boxes */
    .article,
    .news-item,
    .faq-item,
    .contact-form {
        animation: fadeInBox 0.5s ease forwards;
    }


    .container {
        width: 90%;
        margin: 0 auto;
        padding: 0 10px;
    }

    .nav-links {
        display: none;
    }

    .nav-links li {
        display: block;
        text-align: center;
        margin-bottom: 10px;
        margin: 0 10px;
    }

    .nav-links li a {
        display: block;
    }

    .hero-heading,
    .hero-subheading,
    .section-heading,
    .section-text,
    .article-title,
    .article-text,
    .news-title,
    .news-text,
    .faq-question,
    .faq-answer,
    .form-label,
    .form-input,
    .form-textarea,
    .form-button,
    .footer-text {
        animation: fadeIn 1s ease;
    }

    /* Adjustments for smaller screens */
    .nav-links {
        display: none;
    }

    .nav-links li {
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }

    .nav-links li a {
        display: block;
    }


    /* Animation for Fading In Boxes */
    @keyframes fadeInBox {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Apply the animation to boxes */
    .article,
    .news-item,
    .faq-item,
    .contact-form {
        animation: fadeInBox 0.5s ease forwards;
    }
}
